// ignore_for_file: must_be_immutable, use_super_parameters

import 'package:flutter/material.dart';

class DefultTextField extends TextField {
  double fontSize;
  DefultTextField(this.fontSize,
      {super.key,
      TextEditingController? controlle,
      Color? textColor,
      Color? hitColor,
      String? hintText,
      bool? obscureText,
      int? maxLength,
      FocusNode? focusNode,
      TextInputType? keyboardType,
      FontWeight? fontWeight,
      int? maxLine = 1,
      TextAlign? textAlign,
      Function(String)? super.onChanged,
      Function(String)? super.onSubmitted,
      Function()? super.onEditingComplete})
      : super(
            obscureText: obscureText ?? false,
            focusNode: focusNode,
            autofocus: false,
            textAlign: textAlign ?? TextAlign.start,
            decoration: InputDecoration(
                border: InputBorder.none,
                counterText: '',
                hintText: hintText,
                hintStyle: TextStyle(
                    fontSize: fontSize,
                    fontWeight: fontWeight,
                    color: hitColor ?? const Color(0xB3FFFFFF))),
            style: TextStyle(
                fontSize: fontSize,
                fontWeight: fontWeight,
                color: textColor ?? const Color(0xFFFFFFFF)),
            controller: controlle,
            cursorColor: textColor ?? const Color(0xFFFFFFFF),
            keyboardType: keyboardType,
            maxLines: maxLine,
            maxLength: maxLength);
}
